projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceb631b
)
Avoid an useless ref/unref
author
Cosimo Cecchi
<cosimoc@gnome.org>
Mon, 21 Jan 2013 22:00:50 +0000
(17:00 -0500)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Mon, 21 Jan 2013 22:00:50 +0000
(17:00 -0500)
The GMount will be kept alive by the async operation itself.
gtk/gtkplacessidebar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkplacessidebar.c
b/gtk/gtkplacessidebar.c
index 018eeed864de6c2ab747e36d6f7492dd8424400d..1bdb1dde0ed1f284cf70bb05409355a7f48d9eae 100644
(file)
--- a/
gtk/gtkplacessidebar.c
+++ b/
gtk/gtkplacessidebar.c
@@
-2163,7
+2163,6
@@
unmount_mount_cb (GObject *source_object,
/* FIXME: we need to switch to a path that is available now - $HOME? */
g_object_unref (sidebar);
- g_object_unref (mount);
}
static void
@@
-2221,10
+2220,7
@@
do_unmount (GMount *mount,
if (mount != NULL) {
GMountOperation *mount_op;
- g_object_ref (mount);
-
mount_op = get_unmount_operation (sidebar);
-
g_mount_unmount_with_operation (mount,
0,
mount_op,